/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.datasets.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.medusa.gruul.common.data.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 交易统计表
 * </p>
 *
 * @author xiaoq
 * @since 2020-05-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_dc_shop_ranking")
@ApiModel(value = "DcShopRanking对象", description = "交易统计表")
public class DcShopRanking extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "交易统计表id")
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	@ApiModelProperty(value = "商铺id 用于区分城市合伙人 ")
	@TableField("shop_id")
	private String shopId;

	@ApiModelProperty(value = "商品id")
	@TableField("product_id")
	private Long productId;

	@ApiModelProperty(value = "团长id")
	@TableField("group_leader_id")
	private Long groupLeaderId;

	@ApiModelProperty(value = "供应商id")
	@TableField("provider_id")
	private Long providerId;

	@ApiModelProperty(value = "商铺交易量")
	@TableField("trading_volume")
	private Integer tradingVolume;

	@ApiModelProperty(value = "商铺交易额")
	@TableField("trade_volume")
	private BigDecimal tradeVolume;

	@ApiModelProperty(value = "图片地址")
	@TableField("url")
	private String url;

	@ApiModelProperty(value = "昵称")
	@TableField("nick")
	private String nick;

	@ApiModelProperty(value = "	")
	@TableField("text")
	private String text;

	@ApiModelProperty(value = " 3:分销商 4:供应商 5:商品 6:店铺")
	@TableField("type")
	private Integer type;

	@ApiModelProperty(value = "所属上级id")
	@TableField("superior_id")
	private Long superiorId;

	@ApiModelProperty(value = "年")
	@TableField("yyyy")
	private Integer yyyy;

	@ApiModelProperty(value = "年月")
	@TableField("yyyyMM")
	private Integer yyyyMM;

	@ApiModelProperty(value = "年月日")
	@TableField("yyyyMMdd")
	private Integer yyyyMMdd;


}
